
var api = require("../../../../api.js"),
  app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    data: [
      {
        status: '',
        givetime: '',
      },
    ]
  },

  onShow:function(){
    app.pageOnLoad(this);
    var that = this;
    var bid = wx.getStorageSync('bid');
    var uid = wx.getStorageSync('uid')
    app.request({
      url: api.user.xiaoxi,
      method: 'post',
      data: {
        uid: uid,
        bid: bid
      },
      success: function (data) {
        console.log(data);
        that.setData({
          data: data.data
        });
      }
    })
  }
})